package com.cyedu.tsapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author Garne
 * @since 2021-06-26
 */
public class AppDefault extends Model<AppDefault> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("`zone`")
    private String zone;

    private String groupName;

    @TableField(exist = false)
    private List<AppRecommended> recommendedList;

    public Integer getId() {
        return id;
    }

    public AppDefault setId(Integer id) {
        this.id = id;
        return this;
    }
    public String getZone() {
        return zone;
    }

    public AppDefault setZone(String zone) {
        this.zone = zone;
        return this;
    }

    public String getGroupName() {
        return groupName;
    }

    public AppDefault setGroupName(String groupName) {
        this.groupName = groupName;
        return this;
    }

    public List<AppRecommended> getRecommendedList() {
        return recommendedList;
    }

    public AppDefault setRecommendedList(List<AppRecommended> recommendedList) {
        this.recommendedList = recommendedList;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AppDefault{" +
                "id=" + id +
                ", zone='" + zone + '\'' +
                ", groupName='" + groupName + '\'' +
                ", recommendedList=" + recommendedList +
                '}';
    }
}
